<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<% 
 /**
  功能名称:个人权限
  创建时间:2013-8-13
  创建人:
**/
%>
<%
	String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title>权限查询</title>
		<link href="<%=path%>/css/index_css.css" rel="stylesheet"
			type="text/css" />


	</head>

	<body>
		<p>
			<a style="font-size: '15'">用户： ${user.name }&nbsp;权限如下：</a>
		</p>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td colspan="2" align="left" class="f_5">
					<b>个人权限</b>
				</td>
			</tr>
			<tr>
				<td height="1" colspan="2" bgcolor="#9DD12E"></td>
			</tr>
			<tr>
				<td colspan="2" align="left" valign="top" class="border_2">
					<table width="100%" border="0" cellpadding="0" cellspacing="1"
						bgcolor="#FFFFFF">

						<tr>
							<td>

							</td>
						</tr>
						<tr>
							<td width="14%" height="20" align="left" class="f_4">
							<c:if test="${empty user.userRoleRelations}">
								没有相关权限
								</c:if>
						<c:forEach var="item" items="${user.userRoleRelations }">
							${item.id.role.name }&nbsp;&nbsp;
						</c:forEach>
							</td>
						</tr>
					</table>
				</td>
			</tr>




			<tr>
				<td colspan="2" align="left">
					&nbsp;
				</td>
			</tr>

			<!-- ---------***** -->
			<tr>
				<td colspan="2" align="left" class="f_5">
					<b>邮件授权</b>
				</td>
			</tr>
			<tr>
				<td height="1" colspan="2" bgcolor="#9DD12E"></td>
			</tr>
			<tr>
				<td colspan="2" align="left" valign="top" class="border_2">
					<table width="100%" border="0" cellpadding="0" cellspacing="1"
						bgcolor="#FFFFFF">
						
						<tr>
							<td width="14%" height="20" align="left" class="f_4">
							<c:if test="${empty FindRole1}">
								没有相关权限
								</c:if>
								<c:forEach var="obj1" items="${FindRole1}">
									${obj1[1]}
								</c:forEach>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="left">
					&nbsp;
				</td>
			</tr>



		
			<!-- ---------*****学校特有权限 -->
			<tr>
				<td colspan="2" align="left" class="f_5">
					<b>岗位安排</b>
				</td>
			</tr>
			<tr>
				<td height="1" colspan="2" bgcolor="#9DD12E"></td>
			</tr>
			<tr>
				<td colspan="2" align="left" valign="top" class="border_2">
					<table width="100%" border="0" cellpadding="0" cellspacing="1"
						bgcolor="#FFFFFF">
						<c:if test="${ empty FindRole2}">
						<tr>
							<td width="14%" height="30" align="left" class="f_4">
							
								没有相关权限
							</td>
						</tr>
						</c:if>
						<c:forEach var="obj1" items="${FindRole2}">
								<c:if test="${ empty obj1[2]}">
							<tr>
								<td width="14%" height="30" align="left" class="f_4">
									${obj1[0]}:	<c:if test="${flage!=7 && obj1[1]=='教研组长'}" >教研组负责人</c:if><c:if test="${flage==7 || obj1[1]!='教研组长'}" >${obj1[1]}</c:if>
							</c:if>
							 <c:if test="${ ! empty obj1[2]}">
							 <tr>
								<td width="14%" height="30" align="left" class="f_4">
									${obj1[0]}:${obj1[1]}&nbsp;&nbsp;带${obj1[2]}课
								</td>
							</tr>
							</c:if>
							</c:forEach>
					</table>
				</td>
				</tr>
		</table>
	</body>
</html>
